<div class="nav">
    <a class="sel" href="{:U('index')}">品牌列表</a>
    <a href="{:U('add')}">添加品牌</a>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>
                <td>品牌名称</td>
                <td>品牌LOGO</td>
                <td>顺序编号</td>
                <td>是否启用</td>
                <td>是否推荐</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td>{$list.brand_name}</td>
                <td><img src="__ROOT__{$list.logo}" width="115" /></td>
                <td class="edit_input" attr_t="order_id" attr_id="{$list.brand_id}">{$list.order_id}</td>
                <td class="edit_toggle" attr_t="is_enable" attr_id="{$list.brand_id}">{$list.is_enable}</td>
                <td class="edit_toggle" attr_t="is_tuijian" attr_id="{$list.brand_id}">{$list.is_tuijian}</td>
                <td>
                    <a class="btn_a" href="{:U('edit',Array('brand_id'=>$list['brand_id']))}">修改</a>&nbsp;
                    <a class="btn_a2" href="{:U('del',Array('brand_id'=>$list['brand_id']))}" onclick="return confirm('确定删除吗？这将影响所有该品牌的商品')">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
        <tfood>
            <tr><td colspan="6">{$page}</td></tr>
        </tfood>
    </table>
</div>
